<template>
  <div class="home">
    <div class="bg"></div>
    <img src="@/assets/logo.png">
    <p>欢迎使用小完能餐饮</p>
    <p>当前桌号：A001</p>
    <router-link to="/order" tag="button">开始点餐</router-link>
    <p class="next">》</p>
  </div>
</template>

<script>
// @ is an alias to /src

</script>

<style lang="less" scoped>
.bg{
  width: 100vw;
  height: 100vh;
  position: absolute;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url("@/assets/bg/home.jpg");
  z-index: -10;
}
.home{
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: rgba(46, 46, 46, 0.75);
}
.home img,button,p{
  align-self: center;
}
.home img{
  margin-top: 15vh;
}
.home p{
  color:white;
  margin: 0;
  margin-top: 15px;
  font-size: 25px;
  font-weight: bolder;
}
.home button{
  align-self: center;
  height: 110px;
  width: 110px;
  border-radius: 150px;
  margin-top: 15vh;
  border: 10px solid rgba(255, 217, 0, 0.7);
  background-color: orange;
  color:white;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255, 217, 0, 0.7);
}
.home button:hover{
  box-shadow: 0 0 20px orange;
  text-shadow: 0 0 20px white;
  transition: .3s;
}
.next{
  transform: rotate(90deg);
  animation: next 1.5s infinite ease;
  text-shadow: 0 0 5px white;
}
@keyframes next {
  0%{
    margin-top: 10px;
  }
  50%{
    margin-top: 40px;
  }
  100%{
    margin-top: 10px;
  }
}
</style>
